<?php 
extract(array(
	'pagination_id' => 'pagination_contents',
), EXTR_SKIP);

if ( !empty($products) ) {

	$this->renderPartial('//common/products_block', array(
		'title' => sprintf('Search results for: <span style="color: #f00">%s</span>', getQuery('search_query')),
		'pagination_id' => $pagination_id,
		'class' => '',
		'products' => $products,
		'columns' => 5,
		'products_class' => $view_type == 'list' ? 'products-list' : 'products-grid',
		'show_description' => $view_type == 'list' ? true : false,
		'before_list' => array(
			'//product/components/sortings',
			array(
				'pagination' => $pagination,
				'pagination_id' => $pagination_id,
				'sortby' => $sortby,
				'sortdir' => $sortdir,
				'view_type' => $view_type,
			),
		),
		'after_list' => array(
			'//common/pagination',
			array(
				'pagination' => $pagination,
				'pagination_id' => $pagination_id,
			),
		),
	));

} else {
	
	printf('<div style="text-align: center; height: 200px; padding-top: 60px;">No data found !!!!!!</div>');
}